package chapter08_oop._abstract;

/**
 * ClassName: Person
 * Package: capter08._abstract
 * Description:
 *
 * @Author SherryAn
 * @Create 2025/7/21 14:33
 */
public abstract class  Person {
    String name;
    int age;

    public Person(){

    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

//    抽象方法
    public abstract void eat();

    public abstract void sleep();
}
